using UnityEngine;
using System.Collections;

public class Scene_Manager : MonoBehaviour 
{

    private static string currentScene;

    void Start()
    {
        //currentScene = Application.loadedLevelName;
    }

    void Update()
    {
       //ChangeScene();
    }

    public static void ChangeScene(string scene_selected)
    {
        currentScene = scene_selected; //Application.loadedLevelName;

        switch (currentScene)
        {
            case "Opening":
                Application.LoadLevel("Menu");
                break;

            case "Menu":
                Application.LoadLevel("Menu");
                break;

            case "Instructions":
                Application.LoadLevel("Instructions");
                break;

            case "Game":
                Application.LoadLevel("Game");
                break;

            case "Credits":
                Application.LoadLevel("Credits");
                break;

            case "Defeat":
                Application.LoadLevel("Defeat");
                break;

            case "Victory":
                Application.LoadLevel("Victory");
                break;
        }
        
    }
}
